package com.hs.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @description: 课程交流实体类
 * @author shanglin
 * @date 2024/10/25 9:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Coursetalk {

  private Long id;
  private String title;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date createTime;
  private Long courseId;
  private Long userId;
  private Course course;
  private User user;
  // 该talk下的回复及数量
  private List<Coursereply> coursereply;
  private Integer coursereplycount;

}
